import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

/**
 * Created by 14229 on 2020/2/19.
 */
public class Test05 {
    public static void main(String[] args) {

        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"java","python","IT","java","全栈","java");
        Set<String> set = new HashSet<>(list);
        System.out.println(set);
    }
}
